
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>文件上传页面</title>
</head>
<body>
<h3>1.传统方法文件上传</h3>
<!--上传文件的表单需要设置method属性为post，enctype属性为multipart/form-data-->
<form action="../upload/fileupload1" method="post" enctype="multipart/form-data">
    选择文件：<input type="file" name="upload"><br>
    <input type="submit" value="上传">
</form>
<hr>
<h3>2.spring mvc方法文件上传</h3>
<form action="../upload/fileupload2" method="post" enctype="multipart/form-data">
    选择文件：<input type="file" name="upload"><br>
    <input type="submit" value="上传">
</form>
<hr>
<h3>3.跨服务器上传文件（本项目模拟应用服务器，eclipse项目模拟文件服务器）</h3>
<form action="../upload/fileupload3" method="post" enctype="multipart/form-data">
    选择文件：<input type="file" name="upload"><br>
    <input type="submit" value="上传">
</form>
</body>
</html>
